{literal}
<style>
#success {
	background-color: #88d280;
	border: 1px solid #094a00;
	padding: 4px;
	color: black;
	font-size: 13px;
}
</style>

{/literal}
{if $smarty.get.sent}
<div id="success" >Danke! Wir haben Ihre Nachricht erhalten.</div>
{/if}
<form name="TheForm" action="{$Sys_CurrentPageURL}&method=sendMessage" method="post">
<table style="width: 99%">
	<tr>
		<td width="130"><strong>Empf&auml;nger*:</strong></td>
		<td>
			<select name="pkSubject" style="width: 300px">
				<option value="" selected="selected">Bitte Empf&auml;nger ausw&auml;hlen...</option>
				{foreach from=$SubjectManager_Subjects item=i}{if $i->canRead() && ($i->mailBusiness || $i->mailPrivate)}
				<option value="{$i->pkSubject}"{if $i->pkSubject==$smarty.get.pkSubject} selected="selected"{/if}>{$i->firstName}{if $i->middleName} {$i->middleName}{/if} {$i->lastName} (E-Mail)</option>
				{/if}{/foreach}
		
			</select>
		</td>
	</tr>
	
	<tr>
		<td><strong>Absender*:</strong></td>
		<td>
			<input type="text" name="SubjectManager_senderName"  style="width: 300px"/>
		</td>
	</tr>
	
	<tr>
		<td><strong>E-Mail:</strong></td>
		<td>
			<input type="text" name="SubjectManager_senderMail"  style="width: 300px"/>
		</td>
	</tr>
	
	<tr>
		<td><strong>Betreff:</strong></td>
		<td>
			<input type="text" name="SubjectManager_subject" />
		</td>
	</tr>
	
	<tr>
		<td valign="top"><strong>Nachricht*:</strong></td>
		<td>
			<textarea name="SubjectManager_message" style="width: 100%; height: 140px;"></textarea>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="right">
			<a href="javascript:document.TheForm.submit();">Nachricht absenden</a>
		</td>
	</tr>

</table>
	<input type="text" name="name" style="width: 0px; height: 0px; visibility: hidden;" />
	</form>
